Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved cabin sizing documentation #101

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ngomezve
Copy link
Contributor

@ngomezve ngomezve commented Nov 6, 2024

This PR follows the request in PR #97 for better documentation on the cabin sizing models. A new page has been added to the docs summarizing the modeling approach for the single and double decker aircraft. In addition, old tests of the resizing functions that were removed when changing the fuselage data storage have been brought back.

revived resizing tests

updated cabin figure with better seats
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.

Project coverage is 73.20%. Comparing base (430cfd8) to head (b2b9db7).
Report is 46 commits behind head on main.

Files with missing lines Patch % Lines
src/structures/update_fuse.jl 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #101      +/-   ##
==========================================
- Coverage   73.41%   73.20%   -0.22%     
==========================================
  Files          77       80       +3     
  Lines       13908    13500     -408     
==========================================
- Hits        10211     9882     -329     
+ Misses       3697     3618      -79     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@ngomezve ngomezve marked this pull request as ready for review November 13, 2024 18:56
@@ -142,8 +142,9 @@ if !ac_type_fixed
end

maxpax = readmis("max_payload_in_pax_equivalent") #This represents the maximum aircraft payload in equivalent number of pax
#Part of this payload may be carried in the aircraft's cargo hold
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mean to clarify that maxpax includes tonnage beyond passenger-associated weight?

If so, consider rephrasing something like, "this may exceed the seatable capacity to account for belly cargo."

tangential question, is this extra mass assumed to distribute uniformly along the cabin? if so, seems worth noting in the docs (if not already done).

Copy link
Contributor Author

@ngomezve ngomezve Nov 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't make changes to the way that the maximum payload is handled by fuseW(). My understanding is that it is indeed uniformly distributed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A good detailed pass. Two suggestions:

  • a very high level summary as the introductory paragraph would be ideal. Something that answers very quickly: "tasopt includes these assumptions by default, additional models can include y (e.g., doubledecking), you can calculate/optimize x if you specify blah".
  • On a more nitpicky stylistic note, the gen'l structure for each documentation page is: 1. high level summary, 2. conceptual/theoretical breakdown with figures and/or references (with links) to the relevant fxns 3. list of fxns as a list at the end. adhering to this i think would be helpful in keeping things consistent for readers

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion. I just made these changes.

@@ -21,7 +22,7 @@ length.
function place_cabin_seats(pax, cabin_width, seat_pitch = 30.0*in_to_m,
seat_width = 19.0*in_to_m, aisle_halfwidth = 10.0*in_to_m, fuse_offset = 6.0*in_to_m)

cabin_offset = 10 * ft_to_m #Distance to the front and back of seats
cabin_offset = 10 * ft_to_m #Distance to the front of seats
#TODO the hardcoded 10 ft is not elegant
Copy link
Collaborator

@argonaut22 argonaut22 Nov 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed. off-the-cuff thought: perhaps it could be a default value for a field within the Cabin struct

Copy link
Collaborator

@argonaut22 argonaut22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall, 👍. a couple of comments within which should help with consistency

@argonaut22
Copy link
Collaborator

Thanks for making the changes. Made a few more and i think we're good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants